<!--
 * @FilePath     : /study_code/css/backdrop-filter.html
 * @Description  : backdrop-filter 属性
 * @Date         : 2025-04-28 11:08:07
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-28 11:08:07
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      .parent {
        position: relative;
        width: 300px;
        height: 300px;
      }

      .parent img {
        position: absolute;
        width: 100%;
        z-index: 1;
      }

      .box {
        position: absolute;
        z-index: 2;
        width: 150px;
        height: 300px;
        opacity: 0.8;
        /* border: 1px solid red; */
        background-color: lightblue;
      }

      .box1 {
      }

      .box2 {
        right: 0;
        backdrop-filter: saturate(150%) blur(8px);
        -webkit-backdrop-filter: saturate(150%) blur(8px);
        background-color: rgba(0, 0, 0, 0.3);
      }

      h3 {
        filter: grayscale(1);
      }
    </style>
  </head>
  <body>
    <div class="parent">
      <img src="./images/246853d4647e4f17b6ddf728f3169c36.png" />
      <div class="box box1"></div>
      <div class="box box2"></div>
    </div>
    <script></script>
  </body>
</html>
